package com.accenture.portal.dao.access.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.access.AccessMapper;
import com.accenture.portal.model.access.Access;

@Repository
public class AccessMapperImpl implements AccessMapper {

	@Autowired
	private AccessMapper accessMapper;

	/* Json */
	@Override
	public List<Access> searchAllAccess() {

		return accessMapper.searchAllAccess();
	}

	/* all access string */
	@Override
	public List<Access> searchAllAccessStr() {

		return accessMapper.searchAllAccessStr();
	}

	/* Add */
	@Override
	public void addAccess(Access access) {
		accessMapper.addAccess(access);

	}

	/* Update */
	@Override
	public void updateAccess(Access access) {
		accessMapper.updateAccess(access);

	}

	@Override
	public Access searchAccessById(Integer accessId) {

		return accessMapper.searchAccessById(accessId);
	}

	/* delete */
	@Override
	public void physicalDeleteAccess(Integer accessId) {
		accessMapper.physicalDeleteAccess(accessId);

	}

	@Override
	public void logicalDeleteAccess(Integer accessId) {
		accessMapper.logicalDeleteAccess(accessId);

	}

	/* pagnation */
	/* pagnation */
	@Override
	public List<Access> searchAllAccessStrPagenation(int start, int end) {

		return accessMapper.searchAllAccessStrPagenation(start, end);
	}

	@Override
	public int getTotalCount() {
		return accessMapper.getTotalCount();
	}
}
